package com.zhou.scaffolding.controller;


import com.zhou.scaffolding.annotation.OperationLog;
import com.zhou.scaffolding.common.Result;
import com.zhou.scaffolding.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhoulinggang
 * @since 2020-08-21
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    @Qualifier(value = "userService")
    private IUserService userService;

    @GetMapping("/list")
    @OperationLog("用户列表查询")
    public Result list(){
        return Result.data(userService.list());
    }
}
